package com.blogspot.nhu313.myhistory.category.to;


public class CategoryFactory {
	
	public static Category createCategory(String categoryName){
		Category category = new Category();
		category.setName(categoryName);
		return category;
	}

	public static Category createSubCategoryWithId(int categoryId, String categoryName, int parentId){
		Category category = new Category();
		category.setId(categoryId);
		category.setName(categoryName);
		category.setParentId(parentId);
		return category;
	}
}
